home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6527 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: news.lpr.carel.fi!usenet
  2. From: Ari Lukumies <aril@cmt.lpr.mail.carel.fi>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: borlandc delay function
  5. Date: Mon, 19 Feb 1996 15:24:55 +0200
  6. Organization: Carelcomp Forest
  7. Message-ID: <31287A27.1DB8@cmt.lpr.mail.carel.fi>
  8. References: <4g08jr$127@tornix.tornado.be>
  9. NNTP-Posting-Host: renoir.cclahti.carel.fi
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0b6a (WinNT; I)
  14.  
  15. Ulrik Van Schepdael wrote:
  16. > Hi,
  17. > could someone please explain me how the borlandc delay function works ?
  18. > what kind of hardware it uses and how it can be infected...
  19. > had some strange experiences with it, delays all going to zero...
  20. > CIAO
  21. > Ulrik
  22.  
  23. I think it's using the BIOS interrupt (some INT 15hex service, don't remember which 
  24. one, but check out the Ralph Brown's interrupt list) and as such can be infected by 
  25. various device drivers, TSRs etc. The BIOS interrupt, if I recall, uses the RTC to 
  26. invoke it using an HW IRQ after specified period of time, but if there's another 
  27. higher IRQ at the same time, this IRQ may get lost during the next clock update or 
  28. when someone resets the interrupt controller. Also, some systems (usually the older 
  29. ones) do not support this BIOS service.
  30.  
  31. Later,
  32.  AriL
  33. -- 
  34. All my opinions are mine and mine alone.
  35.